public class Test {
    public static void main(String[] args) {
        Component com = new BorderDecorator(new ScrollDecorator(new BorderDecorator(new TextBox())));
        com.paintComponent();
    }
}
